﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>欢迎登录电力巡检系统后台</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="artDialog/skins/blue.css" type="text/css"></link>
<script language="JavaScript" src="js/jquery.js"></script>
<script src="js/cloud.js" type="text/javascript"></script>
<script type="text/javascript" src="artDialog/artDialog.min.js"></script>
<script type="text/javascript" src="artDialog/jquery.artDialog.min.js"></script>
<script type="text/javascript" src="artDialog/artDialog.plugins.min.js"></script>
<script type="text/javascript" src="js/util.js" ></script>
<script language="javascript">
	$(function(){
    $('.loginbox').css({'position':'absolute','left':($(window).width()-692)/2});
	$(window).resize(function(){  
    $('.loginbox').css({'position':'absolute','left':($(window).width()-692)/2});
    })  
});
function login(){
	var name = $("#uname").val();
	var pwd = $("#upass").val();
	if(name.length==0){
		defaultAlert("登录","用户名不能为空");
		return ;	
	}
	if(pwd.length==0){
		defaultAlert("登录","密码不能为空");
		return ;	
	}
	$.post("user!login.action",{"user.username":name,"user.password":pwd},function(data){
		switch(eval("("+data+")").code){
			case -1: defaultAlert("登录","该用户已被冻结");break;
			case 0 : defaultAlert("登录","用户名或密码错误");break;
			case 1: location.href="main.html"; break;
			default :defaultAlert("登录","未知错误"); break;
		}
	});
}  
</script> 
</head>

<body style="background-color:#1c77ac; background-image:url(images/light.png); background-repeat:no-repeat; background-position:center top; overflow:hidden;">



    <div id="mainBody">
      <div id="cloud1" class="cloud"></div>
      <div id="cloud2" class="cloud"></div>
    </div>  


<div class="logintop">    
    <span>欢迎登录后台管理界面平台</span>    
    <ul>
    <li><a href="#">回首页</a></li>
    <li><a href="#">帮助</a></li>
    <li><a href="#">关于</a></li>
    </ul>    
    </div>
    
    <div class="loginbody">
    
    <span class="systemlogo"></span> 
       
    <div class="loginbox">
    
    <ul>
    <li><input id="uname" type="text" class="loginuser" value="admin"/></li>
    <li><input id="upass" type="password" class="loginpwd" value="admin"/></li>
    <li><input type="button" class="loginbtn" value="登录"  onclick="login()"  /></li>
    </ul>
    
    
    </div>
    
    </div>
    
    
    
    <div class="loginbm">版权所有  2014  <a href="#">www.bdqn.com</a>  仅供学习交流，勿用于任何商业用途</div>
	
    
</body>
</html>
